Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(user): global modal submit handlers causing internal errors #622

Merged
merged 1 commit into from
Jul 21, 2024

Conversation

maradotwebp
Copy link
Contributor

A typo caused slash-create to throw internal errors if a modal was submitted and a global modal submit handler was registered - The code checks whether globalCallbackKey exists in _modalCallbacks, but then tries to access modalCallbackKey in _modalCallbacks.

Fixing the typo allows developers to use creator.registerGlobalModal again.

A typo caused slash-create to throw internal errors if a modal was submitted and a global modal submit handler was registered.

Fixing the typo allows `creator.registerGlobalModal` to resolve callbacks properly again.
@maradotwebp maradotwebp changed the title Fix global modal submit handlers causing internal errors fix(user): global modal submit handlers causing internal errors Jul 21, 2024
@Snazzah Snazzah added type: bug Something isn't working scope: components This has something to do with components labels Jul 21, 2024
@Snazzah Snazzah merged commit ac81cd3 into Snazzah:master Jul 21, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: components This has something to do with components type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants